package com.xjrsoft.module.organization.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author hnyyzy
 * @version 1.0
 * @date 2024/3/11 9:39
 */
@Data
public class PostExportVo {

    @ApiModelProperty("岗位名称")
    @NotNull(message = "岗位名称不能为空！")
    @Length(min = 2,max = 20,message = "岗位名称不能少于2个字符，大于20个字符！")
    @ExcelProperty("岗位名称(*)")
    private String name;

    @ApiModelProperty("编码")
    @NotNull(message = "岗位编码不能为空！")
    @Length(max = 10,message = "岗位编码不能大于10个字符！")
    @ExcelProperty("编码(*)")
    private String code;

    @ApiModelProperty("上级岗位")
    @ExcelProperty("上级岗位")
    private Long parentId = 0L;

    @ApiModelProperty("排序号")
    @ExcelProperty("排序号")
    private Integer sortCode;

    @ApiModelProperty("备注")
    @Length(max = 255,message = "备注不能大于255个字符！")
    @ExcelProperty("备注")
    private String remark;

    @ApiModelProperty("有效标记")
    @ExcelProperty("有效标记")
    private Integer enabledMark;

    @ApiModelProperty("岗位所属组织id")
    @ExcelProperty("岗位所属组织id(*)")
    private Long deptId = 0L;
}
